public abstract class Motherboard implements Component{
    private String name;
    private double speed;
    private double price;

    Motherboard(String name,double speed,double price){
        this.name =  name;
        this.speed =  speed;
        this.price = price;
    }
    public abstract void work();

    public String getName() { return name; }
    public double getSpeed() { return speed; }
    public double getPrice() { return price; }
    public void setName(String name) { this.name = name; }
    public void setPrice(double price) { this.price = price; }
}
